import is from './is'

function lenthify (value) {
  if (is('number', value)) {
    if (value < 1) {
      return value * 100 + '%'
    } else {
      return value + 'px'
    }
  }
  return value
}

export {lenthify}
